module.exports = {
  value: {
    type: [Number, String, Array],
    required: true,
    default: '',
    name: '当前选中的值',
    filedType: 'value',
    dataSource: {
      from: 'options',
      type: 'array',
      labelKey: 'label',
      valueKey: 'value'
    }
  },

  labelWidth: {
    type: String,
    default: '5em',
    name: '标题宽度',
    nameTip: '建议用em单位显示几个字',
    filedType: 'string'
  },

  title: {
    type: String,
    default: '标题',
    name: '标题',
    filedType: 'string'
  },

  options: {
    type: Array,
    default () {
      return [
        {
          label: '选项1',
          value: '1'
        },
        {
          label: '选项2',
          value: '2'
        }
      ]
    },
    name: '选择项',
    filedType: 'api'
  },

  boldLabel: {
    type: Boolean,
    default: true,
    name: '标题名称是否加粗',
    filedType: 'switch'
  },

  multiple: {
    type: Boolean,
    default: true,
    name: '是否开启多选',
    filedType: 'switch'
  },

  multipleBtnVisible: {
    type: Boolean,
    default: true,
    name: '多选按钮可见',
    filedType: 'switch'
  },

  toggleHeight: {
    type: Number,
    default: 50,
    name: '显示收缩按钮的高度值',
    filedType: 'string'
  },

  toggleSelf: {
    type: Boolean,
    default: false,
    name: '单选状态进是否允许切换自身',
    filedType: 'switch'
  },

  isFold: {
    type: Boolean,
    default: true,
    name: '是否需要收起展开',
    filedType: 'switch'
  },

  selectedTagActiveBg: {
    type: String,
    default: '#26a8ff',
    name: '选中标签背景色',
    filedType: 'color'
  },

  selectedTagActiveColor: {
    type: String,
    default: '#ffffff',
    name: '选中标签颜色',
    filedType: 'color'
  },

  useMorePopper: {
    type: Boolean,
    default: false,
    name: '启用弹窗显示更多',
    filedType: 'switch'
  },
  moreId: {
    type: String,
    default: 'id_morepopper',
    name: '绑定ID',
    filedType: 'string',
    vif: {
      key: 'useMorePopper',
      value: true
    }
  },
  difIndex: {
    type: String,
    default: '4',
    name: '偏差值',
    filedType: 'string',
    vif: {
      key: 'useMorePopper',
      value: true
    }
  },
  icons: {
    type: Array,
    default () {
      return []
    },
    name: '更多图标',
    filedType: 'file',
    limit: 2,
    maxSize: 1024,
    vif: {
      key: 'useMorePopper',
      value: true
    }
  },
  imgWidth: {
    type: String,
    default: '100%',
    name: '图标宽度',
    filedType: 'string',
    vif: {
      key: 'useMorePopper',
      value: true
    }
  },

  imgHeight: {
    type: String,
    default: '100%',
    name: '图标高度',
    filedType: 'string',
    vif: {
      key: 'useMorePopper',
      value: true
    }
  },
  objectFit: {
    type: String,
    default: 'none',
    name: '图标填充模式',
    filedType: 'select',
    options: [
      {
        name: '无',
        value: 'none'
      },
      {
        name: '填充',
        value: 'fill'
      },
      {
        name: '缩放',
        value: 'contain'
      },
      {
        name: '覆盖',
        value: 'cover'
      }
    ],
    vif: {
      key: 'useMorePopper',
      value: true
    }
  },
  useHasSelected: {
    type: Boolean,
    default: false,
    name: '启用默认选中',
    filedType: 'switch'
  },
}
